#ifndef  __tempAd_h   
    #define __tempAd_h
//Hal
	//ad6

//	#define F_setLed P1_6=1
//	#define F_clrLed P1_6=0
	//#define F_setPowerH P0_3=1
//	#define F_clrPowerH P0_3=0
	#define F_setPowerL P1_2=1
	#define F_clrPowerL P1_2=0
#define D_adChannel  0x80
//Const	
		//pullup 10k
   #define   D_shortValue 253
	 #define D_offValue  4000  //断路

//Var
	#ifdef __tempAd_c 
	//bit bTG;
	bit bAdOff;
	uint8_t adOffNum;
	uint8_t curTemp;
	uint8_t higTempBuzzNum;
	bit bHigTempBuzz;
		//code const uint8_t displayFonts[10];
	#else
	//extern bit bTG;
	extern 	bit bHigTempBuzz;
	extern uint8_t higTempBuzzNum;
	extern uint8_t curTemp;
	extern	bit bAdOff;
	extern uint8_t adOffNum;
//extern code const uint8_t displayFonts[10];
	#endif

//Function
 
    void    getTemp(void)  ;

//void TG();
#endif